import request from '../utils/request';
  
  export function getListData(params: any): any {
    return request({
      url: '/api/category/list',
      method: 'GET',
      params
    });
  }
  
  export function categoryAdd(data: any): any {
    return request({
      url: '/api/category/add',
      method: 'POST',
      data
    });
  }

  export function getDetail(params: any): any {
    return request({
      url: '/api/category/detail',
      method: 'GET',
      params
    });
  }
  export function deleteCategory(params: any): any {
    return request({
      url: '/api/category/delete',
      method: 'DELETE',
      params
    });
  }
  export function categoryUpdate(data: any): any {
    return request({
      url: '/api/category/update',
      method: 'POST',
      data
    });
  }
